package missile;

import java.awt.Color;
import java.awt.Graphics;

/**
 * 
 * @author LocoRocoBattleStein
 *
 */
public class Ice extends Missile {
	/**
	 * Constructor
	 * @param posX
	 * @param posY
	 * @param finalX
	 * @param finalY
	 * @param velocity
	 * @param effectLife
	 * @param effectVelocity
	 */
	private int initX;
	private int initY;
	
	public Ice(int posX, int posY, int finalX, int finalY, double velocity, int effectLife, int effectVelocity) {
		super(posX, posY, finalX, finalY, velocity, effectLife, effectVelocity);
		initX = posX;
		initY = posY;
	}
	
	public void draw(Graphics g) {
		g.setColor(Color.WHITE);
		g.drawLine(initX, initY, (int)this.getPosX(), (int)this.getPosY());
	}

}
